/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package 解析.node.charproperty.支持补集;

import 解析.UnicodeProp;

/**
 *
 * @author yanxi
 */
public class Utype extends CharProperty支持补集 { 
    public final UnicodeProp uprop;
    public String name="";

    public Utype(UnicodeProp uprop) {
        this.uprop = uprop; 
    }
    
    public Utype(String name,UnicodeProp uprop) {
        this.uprop = uprop; 
        this.name=name;
    }
    
    @Override
    public boolean isSatisfiedBy正集 (int ch) {
        return uprop.is(ch);
    } 
    
    @Override
    public String toString正集(){ return "\\p{"+name+uprop+"}"; }
    @Override
    public String toString补集(){ return "\\P{"+name+uprop+"}"; }
}
